package com.example.yixueban.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.yixueban.mapper.BillMapper;
import java.util.List;
import com.example.yixueban.domain.BillExample;
import com.example.yixueban.domain.Bill;
import com.example.yixueban.service_interface.BillService;

/**
 * User: Wang YiHan
 * Date: 2021/8/5 10:54
 * Email: 783096044@qq.com
 * File_Name: BillServiceImpl
**/
@Service
public class BillServiceImpl implements BillService{

    @Resource
    private BillMapper billMapper;

    @Override
    public long countByExample(BillExample example) {
        return billMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(BillExample example) {
        return billMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer billId) {
        return billMapper.deleteByPrimaryKey(billId);
    }

    @Override
    public int insert(Bill record) {
        return billMapper.insert(record);
    }

    @Override
    public int insertSelective(Bill record) {
        return billMapper.insertSelective(record);
    }

    @Override
    public List<Bill> selectByExample(BillExample example) {
        return billMapper.selectByExample(example);
    }

    @Override
    public Bill selectByPrimaryKey(Integer billId) {
        return billMapper.selectByPrimaryKey(billId);
    }

    @Override
    public int updateByExampleSelective(Bill record,BillExample example) {
        return billMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Bill record,BillExample example) {
        return billMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Bill record) {
        return billMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Bill record) {
        return billMapper.updateByPrimaryKey(record);
    }

}
